package com.mioto.ld.communication.mqtt.protocol.model.device;

import cn.hutool.core.date.DateUtil;
import com.mioto.ld.communication.mqtt.protocol.model.Payload;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author mioto-qinxj
 * @date 2024/6/13
 * @desc 因为上报时间取服务器时间，所有忽略协议上定义的reportTime字段
 */
@Getter
public class DevicePressTimePayload extends Payload {
    /**
     * 上报时间
     */
    private Date reportDate = new Date();

    /**
     * 按键时长
     */
    private Integer pressTime;

    public void setPressTime(Integer pressTime) {
        this.pressTime = pressTime;
    }

}
